/*
 * @Author: your name
 * @Date: 2022-01-21 16:06:21
 * @LastEditTime: 2022-01-21 16:49:35
 * @LastEditors: LAPTOP-L472H14P
 * @Description: In User Settings Edit
 * @FilePath: \react_front_engineer\src\NodeJs\express\01托管静态资源.js
 */
const express = require("express");
const app = express();
app.use(express.static("public"))
app.listen("3000",()=>{
    console.log("serve is running");
})
app.get("/user", (req,res)=>{
    console.log(req.query);
    res.send("请求成功")
})